package com.changgou.item.feign;

import com.changgou.common.vo.Result;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("item-web")
@RequestMapping("/page")
public interface PageFeign {

    /**
         * 根据商品spu id生成静态页面
         * @param spuId 商品spu id
         */
    @GetMapping("/createHtml/{spuId}")
    Result createHtml(@PathVariable Long spuId);

    /**
     * 根据商品spu id删除静态页面
         * @param spuId 商品spu id
         * @return 操作结果
     */
    @GetMapping("/deleteHtml/{spuId}")
    Result deleteHtml(@PathVariable Long spuId);
}
